<script id="articleTpl" type="text/html">
<div class="hhq-box" style="margin:20px;" >
    <div class="hhq-box-hd">文章组</div>

    <a class="layui-btn layui-btn-sm layui-btn-warm articleSubmit" lay-submit lay-filter="articleSubmit" style="float: right">保存设置</a>
    <div class="hhq-box-bd">
        <div class="layui-clear" id="articleImgViewModuleParent">
            <form class="layui-form" action="">
                <div class="layui-form-item">
                    <label class="layui-form-label">文章分类</label>
                    <div class="layui-input-inline">
                        <select name="catId">
                            <option value="" selected>--全部分类--</option>
                            {{#  layui.each(d.data, function(index, item){ }}
                            <option value="{{item.id}}">{{item.name}}</option>
                            {{#  }); }}
                        </select>
                    </div>
                    <button type="button" class="layui-btn" id="addArticleImg">添加文章</button>
                </div>
            </form>
            <div id="articleImgView">

            </div>
        </div>
    </div>
</div>
</script>
<script id="articleImgTpl" type="text/html">
    <div class="layui-form-item articleImgViewModule" style="background-color: #c4f8fb;position: relative;padding: 20px 0px 20px">
        <i class="layui-icon layui-icon-close" onclick="delArticleImg(this);" style="font-size: 20px; color: #1E9FFF;background-color: #aaa;border-radius: 50%;position: absolute;right: -10px;top: -10px"></i>
        <label class="layui-form-label">文章ID</label>
        <div class="layui-input-block" style="width: 300px">
            <input type="text" name="id" value="{{d.id}}" placeholder="" class="layui-input" >
        </div>
        <label class="layui-form-label">标题</label>
        <div class="layui-input-block" style="width: 300px">
            <input type="text" name="title" value="{{d.title}}" placeholder="" class="layui-input" >
        </div>
        <label class="layui-form-label">作者</label>
        <div class="layui-input-block" style="width: 300px">
            <input type="text" name="author" value="{{d.author}}" placeholder="" class="layui-input" >
        </div>
        <label class="layui-form-label">文本</label>
        <div class="layui-input-block" style="width: 300px">
            <textarea name="content" placeholder="请输入内容" class="layui-textarea">{{d.content}}</textarea>
        </div>
        <label class="layui-form-label">创建时间</label>
        <div class="layui-input-block" style="width: 300px">
            <input type="text" name="create_time" value="{{d.create_time}}" placeholder="" class="layui-input" >
        </div>
        <label class="layui-form-label">链接地址</label>
        <div class="layui-input-block" style="width: 300px">
            <input type="text" name="link" value="{{d.link}}" placeholder="http://" class="layui-input" >
        </div>
    </div>
</script>